/* 定义 CSS 变量 */
:root {
    --main-padding: 10px;
    --border-color: #EAECF0;
    --success-bg-color: #ECFDF3;
    --success-border-color: #ABEFC6;
    --success-text-color: #067647;
    --info-text-color: #1570EF;
    --secondary-text-color: #667085;
    --font-family: MiSans;
}

.container {
    background: white;
    padding: var(--main-padding);
    box-sizing: border-box;
    font-family: var(--font-family);
}

.scrollable-container {
    width: 100%;
    max-height: 455px;
    overflow-y: scroll;
}

.device-item {
    width: 100%;
    height: 82px;
    box-sizing: border-box;
    background: rgb(249, 250, 251);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0px 20px;
    margin-bottom: var(--main-padding);
    flex-shrink: 0;
}

.device-item-img {
    width: 64px;
    height: 64px;
    margin: 0 var(--main-padding);
    border-radius: 8px;
}

.device-item-content {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.device-item-title {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    width: 90%;
}

.device-status {
    float: right;
    width: 40px;
    height: 20px;
    background: var(--success-bg-color);
    border: 1px solid var(--success-border-color);
    border-radius: 16px;
    font-size: 12px;
    color: var(--success-text-color);
    margin-right: var(--main-padding);
    text-align: center;
    padding-top: 1px;
}

.device-info {
    font-size: 12px;
    color: var(--info-text-color);
    width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-address {
    width: 90%;
    font-size: 12px;
    color: rgb(102,112,133);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recipe-container {
    display: flex;
    flex-wrap: wrap;
    /* padding: 0px 10px; */
    gap: 10px;
    height: fit-content;
    flex-wrap: wrap;
}

.recipe-item {
    width: calc(50% - 5px);
    box-sizing: border-box;
    height: 52px;
    background: rgb(249, 250, 251);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 5px 14px;
    margin: var(--main-padding) 0;
    flex-shrink: 0;
}

.recipe-item-img {
    width: 36px;
    height: 36px;
    margin: 0 var(--main-padding);
    border-radius: 8px;
}

.recipe-item-content {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.recipe-item-title {
    font-size: 12px;
    font-weight: 400;
}

.device-log-table {
    font-family: var(--font-family);
}
    
.span-top10-count {
    width: 74px;
    height: 22px;
    background: rgba(249, 245, 255, 1);
    border: 1px solid rgba(233, 215, 254, 1);
    border-radius: 16px;
    color: rgba(105, 65, 198, 1);
    font-size: 12px;
    padding: 5px;
    cursor: pointer;
    margin: 0 5px;
  }
  
  .span-top10-amount {
    width: 74px;
    height: 22px;
    background: rgba(249, 250, 251, 1);
    border: 1px solid rgba(234, 236, 240, 1);
    border-radius: 16px;
    color: rgba(102, 112, 133, 1);
    font-size: 12px;
    padding: 5px;
    cursor: pointer;
    margin: 0 5px;
  }